<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>thymeleaf 测试页面</title>
    <meta charset="UTF-8">
    <script th:inline="javascript">
        /*<![CDATA[*/
        var sex = /*[[${user.name}]]*/; //null
        alert("hello world!");
        /*[+
            var msg = 'This is a working application'; //增加代码
        +]*/

        /*[-
            var x = 23; //减少代码
        -]*/

        /*]]>*/
    </script>
</head>
<body>
    <div th:text="${headerContent}"></div>
</body>
</html>